package cn.wolfcode.service;

import cn.wolfcode.domain.Activity;
import cn.wolfcode.domain.ActivityItem;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.Date;
import java.util.List;

public interface IActivityService {
    void save(Activity activity);
    void delete(Long id);
    void update(Activity activity);
    Activity get(Long id);
    List<Activity> listAll();
    // 分页查询的方法
    PageInfo<Activity> query(QueryObject qo);

    //
    List<ActivityItem> selectItemByActivityId(Long id);

    String selectTitleById(Long id);

    void saveRelation(Long empId, Long actItemId, Date date);

    void addAINumById(Long id);

    List<ActivityItem> selectAINumByATitle(String title);

    Long selectRelation(Long empId,Long actItemId);

    int selectNumCount(String ActTitle);
}
